/*
 *  Arrow
 *
 *  Created by David Giovannini on 1/5/07.
 *  Copyright 2007 Software by Jove. All rights reserved.
 *
 */
 
#include "SBJ/Thread/ComInitializer.h"

#if defined(WIN32)
#include <objbase.h>
#endif

namespace SBJ
{

ComInitializer::ComInitializer( void )
{
#if defined(WIN32)
  //::CoInitializeEx( 0, COINIT_APARTMENTTHREADED );
  ::CoInitialize( 0 );
#endif
}

ComInitializer::~ComInitializer( void )
{
#if defined(WIN32)
  ::CoUninitialize();
#endif
}

} // SBJ